auth forms styling updated

This commit is contained in:
realaravinth
2021-05-06 20:32:44 +05:30
parent ab3147e11d
commit d2e4cf5187
14 changed files with 185 additions and 186 deletions

View File

@@ -83,12 +83,12 @@ export class Router {
this.routes.forEach(route => {
const pattern = new RegExp(`^${route.uri}$`);
if (path.match(pattern)) {
fn = route.fn;
fn = route.fn;
}
});
if (fn === undefined) {
throw new Error("Route isn't registered");
throw new Error("Route isn't registered");
}
return fn();