feat: Mostly implemented routing using url-routing package.
This commit is contained in:
@@ -19,8 +19,8 @@ struct DatabaseClientTests {
|
||||
|
||||
@Test
|
||||
func testPath() {
|
||||
let path = AppRoute.ViewRoute.router.path(for: .employee(.index))
|
||||
#expect(path == "/employees")
|
||||
let path = ApiRoute.router.path(for: .employee(.index))
|
||||
#expect(path == "/api/v1/employees")
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user