mirror of
https://github.com/foss42/apidash.git
synced 2025-06-04 17:37:05 +08:00
main C# template, params template completed
This commit is contained in:
@ -160,3 +160,13 @@ String? formatBody(String? body, MediaType? mediaType) {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
String getBaseUrl(String url) {
|
||||
Uri uri = Uri.parse(url);
|
||||
return "${uri.scheme}://${uri.host}";
|
||||
}
|
||||
|
||||
String getUrlPath(String url) {
|
||||
Uri uri = Uri.parse(url);
|
||||
return uri.path;
|
||||
}
|
||||
|
Reference in New Issue
Block a user