Skip to content

Commit

Permalink
routing_path global function
Browse files Browse the repository at this point in the history
  • Loading branch information
donwilson committed Dec 1, 2023
1 parent 305359f commit 6147ee5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Magnetar/_autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,17 @@ function response(
}
}

if(!function_exists('routing_path')) {
/**
* Get the path to a file in the routing directory
* @param string $rel_path Path relative to the storage directory. Defaults to an empty string
* @return string
*/
function routing_path(string $rel_path=''): string {
return app()->pathRouting($rel_path);
}
}

if(!function_exists('storage_path')) {
/**
* Get the path to a file in the storage directory
Expand Down

0 comments on commit 6147ee5

Please sign in to comment.