Thanks to visit codestin.com
Credit goes to github.com

Skip to content

joegasewicz/volk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Siberia

Volk

Zig web framework.

Worheaders.zigk in progress...

Quick Start

const volk = @import("volk.zig");
const request = @import("request.zig");
const response = @import("response.zig");
const Volk = volk.Volk;
const Request = request.Request;
const Response = response.Response;

fn home_handler(_: Request, _: Response) void {
    // Do stuff...
}

pub fn main() !void {
    var app = try Volk.init("0.0.0.0", 8000);

    try app.handler.get("/", home_handler);
    try app.handler.get("/articles", home_handler);
    try app.handler.get("/articles/<<article_id:u16>>", home_handler);

    app.run();
}

About

Zig web framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors